package com.baizhi;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable{
	private int id;
	private  int  cid;
	private String name;
	private Double price;
	private Date date;
	private int num;
	private String author;
	private int salenum;
	private String manage;
	private double dangPrice;
	private String image;

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", cid=" + cid +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", date=" + date +
                ", num=" + num +
                ", author='" + author + '\'' +
                ", salenum=" + salenum +
                ", manage='" + manage + '\'' +
                ", dangPrice=" + dangPrice +
                ", image='" + image + '\'' +
                '}';
    }

    public Book() {
    }

    public Book(int id, int cid, String name, Double price, Date date, int num, String author, int salenum, String manage, double dangPrice, String image) {
        this.id = id;
        this.cid = cid;
        this.name = name;
        this.price = price;
        this.date = date;
        this.num = num;
        this.author = author;
        this.salenum = salenum;
        this.manage = manage;
        this.dangPrice = dangPrice;
        this.image = image;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getSalenum() {
        return salenum;
    }

    public void setSalenum(int salenum) {
        this.salenum = salenum;
    }

    public String getManage() {
        return manage;
    }

    public void setManage(String manage) {
        this.manage = manage;
    }

    public double getDangPrice() {
        return dangPrice;
    }

    public void setDangPrice(double dangPrice) {
        this.dangPrice = dangPrice;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
}
